//
//  myslider.m
//  UI05_UIControl
//
//  Created by dllo on 16/3/15.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "myslider.h"

@implementation myslider

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self config];
    }
    return self;
}
- (void)config{
    //设置划过区域的颜色
    self.minimumTrackTintColor = [UIColor cyanColor];
    
    //设置为划过区域的颜色
    self.maximumTrackTintColor = [UIColor redColor];

    //左边的区域Image
    self.minimumValueImage = [UIImage imageNamed:@"wugui.jpg"];
    
    //右边区域的image
    self.maximumValueImage = [UIImage imageNamed:@"tuzi.jpg"];
}
@end
